<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{@$pageTitle@}</title>
{#include file="Public:head" /#}
</head>

<body id="mainBody">
<div id="all">
    {#rabbet id="tips" /#}    
	<div class="box3 w pr">
    	<div class="box3_wrap">
        	<div class="box3_top">
            	<h4 class="pl10 fb">文章分类管理</h4>
                <div class="funcBox">
                <input type="button" value="添加分类" onclick="location.replace('admin.php?plu=article&a=sortadd&url={@$activeUrl@}');" class="btn1" />
                <input type="button" value="查看未分类文章信息" onclick="location.replace('admin.php?plu=article&a=articlelist&sort_id=-1');" class="btn1" />
                </div>
            </div>
        	<div class="box3_main">
            	<form action="" name="editForm" method="post">
                <table class="table3 w rowPoint">
                	<thead>
                        <tr class="fb">
                            <th width="80">排序</th>
                            <th width="80">ID</th>
                            <th width="250" class="tl">分类名称</th>
                            <th width="80" class="tl">状态</th>
                            <th width="300" class="tl">操作</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    {#volist name="list" id="data"#}
                        <tr>
                            <td class="tc"><input type="text" name="sequence[{@$data.id@}]" class="input1 w30 tc" value="{@$data.sequence@}" /></td>
                            <td class="tc">{@$data.id@}</td>
                            <td>{@$data.sort_name@}</td>
                            <td>{#in name="data.id" value="$sysClassId"#}<span class="f-red">内置</span>{#else/#}{#eq name="data.status" value="1"#}启用{#else/#}禁用{#/eq#}{#/in#}</td>
                            <td><a href="admin.php?plu=article&a=articlelist&sort_id={@$data.id@}">分类信息列表</a> | <a href="admin.php?plu=article&a=sortedit&id={@$data.id@}&url={@$activeUrl@}">编辑分类</a>{#notin name="data.id" value="$sysClassId"#} | <a href="admin.php?plu=article&a=sortdelete&id={@$data.id@}&url={@$activeUrl@}" onclick="return confirm('确认要执行删除操作吗？\n继续，将删除该分类，\n该分类下的数据将划入未分类中。');">删除分类</a>{#/notin#}</td>
                            <td></td>
                        </tr>
                    {#/volist#}
                    </tbody>
                </table>
                <div class="manage1"><input type="button" id="enterResponse" onclick="btnSubmit('form[name=editForm]', 'admin.php?plu=article&a=sortsequence&url={@$activeUrl@}');" value="提交保存" class="btn2" /></div>
                </form>
            </div>
        </div>
        <div class="box3_lt pa"></div>
        <div class="box3_rt pa"></div>
    </div>
</div>
</body>
</html>
